import request from '@/utils/request'
// 与role相关的异步请求
//查询
export function search(data) {
  return request({
    url: 'module/search',
    method: 'post',
    data
  })
}
export function treeNode(){
  return request({
    url:'module/tree',
    method:'post'
  })
}
//删除
export function delById(data) {
  return request({
    url: 'module/delById',
    method: 'post',
    data
  })
}
//添加与修改
export function save(data) {
  return request({
    url: 'module/save',
    method: 'post',
    data
  })
}
